package com.SoftwareManage.service.impl;

import com.SoftwareManage.dao.SoftwareDao;
import com.SoftwareManage.entity.Software;
import com.SoftwareManage.service.CaeService;
import com.SoftwareManage.service.SoftwareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.util.List;

@Service
public class SoftwareServiceImpl implements SoftwareService {
    @Autowired
    private SoftwareDao softwareDao;
    @Override
    public List<Software> selectAll() {
        return softwareDao.selectAll();
    }

    @Override
    public List<Software> selectAlls(int page, int pageSize) {
        return softwareDao.selectAlls(page,pageSize);
    }

    @Override
    public List<Software> search(String software, String person) {
        return softwareDao.search(software, person);
    }

    @Override
    public List<Software> searchs(String software, String person, int page, int pageSize) {
        return softwareDao.searchs(software, person, page, pageSize);
    }

    @Override
    public void update(int id, String software, String person, String ip, String tel, String remark) {
        softwareDao.update(id, software, person, ip, tel,remark);
    }

    @Override
    public void add(String software, String person, String ip, String tel, String remark) {
        softwareDao.add(software, person, ip, tel, remark);
    }

    @Override
    public void delete(int id) {
        softwareDao.delete(id);
    }

    @Override
    public Software findById(int id) {
        return softwareDao.findById(id);
    }

    @Override
    public List<String> selectAllSoftwares() {
        return softwareDao.selectAllSoftwares();
    }
}
